package com.lsx.logistics.response;

import lombok.Data;

import java.util.List;

@Data
public class PageResult <T>{
    /**
     *页面大小
     */
    private int pageSize;
    /**
     *页码
     */
    private int pageNum;
    /**
     *内容
     */
    private List<T> content;
    /**
     *总页数
     */
    private int totalPages;
    /**
     *同行数
     */
    private int totalRows;
    /**
     *前一页
     */
    private int prePage;
    /**
     *后一页
     */
    private int nextPage;
    /**
     *是否是首页
     */
    private boolean isFirstPage;
    /**
     * 是否是最后一页
     */
    private boolean isLastPage;

    @Override
    public String toString() {
        return "PageResult{" +
                "pageSize=" + pageSize +
                ", pageNum=" + pageNum +
                ", content=" + content +
                ", totalPages=" + totalPages +
                ", totalRows=" + totalRows +
                ", prePage=" + prePage +
                ", nextPage=" + nextPage +
                ", isFirstPage=" + isFirstPage +
                ", isLastPage=" + isLastPage +
                '}';
    }
}
